package cn.com.bluemoon.daps.model.vo;

import cn.com.bluemoon.daps.common.domain.UserPermissionApi;
import cn.com.bluemoon.daps.common.enums.DatabaseType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import net.sf.jsqlparser.schema.Database;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@Accessors
@ApiModel(description = "数据匹配标准实体")
public class DeleteFieldVo implements UserPermissionApi {

    @ApiModelProperty(value = "模型中的表id")
    @NotNull(message = "模型中的表id不允许为空")
    public String modelTableId;

    @ApiModelProperty(value = "模型id")
    public String modelId;

    @ApiModelProperty
    @NotNull(message = "数据库类型不允许为空,1 mysql 2 pg 3 hive")
    public DatabaseType databaseType;

    @ApiModelProperty(value = "字段id列表")
    public List<String> ids;

    @Override
    public Serializable getUserPermissionKeyValue() {
        return modelId;
    }
}
